//
//  GMGifPlayer.h
//  GMLive
//
//  Created by gmlive on 17/4/22.
//  Copyright © 2017年 gmlive. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class GMGifPlayer;

@protocol GMGifPlayerDelegate <NSObject>

- (void)gifPlayer:(GMGifPlayer *)player didOutPutImageByte:(GLubyte *)byte WithSize:(CGSize)size;

@end

@interface GMGifPlayer : NSObject
@property (nonatomic, weak) id<GMGifPlayerDelegate> delegate;

@property (nonatomic,assign) NSTimeInterval totalDuratoin;

@property (nonatomic,assign,readonly) BOOL isAnimating;

@property (nonatomic,assign,readonly) BOOL isPause;

- (instancetype)initWithFileName:(NSString *)filename;

- (instancetype)initWithGifName:(NSString *)filename musicName:(NSString *)music;

-(void)startGIF;

- (void)stopGIF;

- (void)pause;
@end
